<?php
    namespace framework;
    class dataAccess
    {
        private $object;
        public function __construct($name, $additionalArguments = false)
        {
            $configuration = parse_ini_file(project::getInstance() -> configurationsPath . 'data_access.ini', true);
            $dataAccessClassName = 'framework\\' . strtolower($configuration[$name]['type']);
            $this -> object = new $dataAccessClassName($name, $additionalArguments);
        }
        public function __call($methodName, $methodArguments)
        {
            return $this -> object -> $methodName($methodArguments);
        }
    }